package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsBrand;
import com.qf.pojo.DtsGoods;
import com.qf.vo.GoodsAllinone;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 * @version v1.0
 * @date 2022/5/18
 */
public interface DtsGoodsService {
    Integer getTotal();

    IPage<DtsGoods> selectPage(Integer page, Integer limit, String goodsSn, String name, String sort, String order, List<Integer> brandIds);

    Map<String, Object> queryDetailById(Integer id);

    Object update(GoodsAllinone goodsAllinone);

    Object checkParam(GoodsAllinone goodsAllinone);

    Object Insert(GoodsAllinone goodsAllinone);

    Object delete(DtsGoods goods);

    void deleteByBrand(DtsBrand brand);

    List<DtsGoods> selectByBrand(DtsBrand brand);
}
